<%--
  Created by IntelliJ IDEA.
  User: 李景辉
  Date: 2017/12/6
  Time: 14:44
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>

<html>
<head>
    <title>Title</title>
</head>
<body>
<%--<c:forEach items="${status}" var="goods">
    ${goods.goods_name}:￥ ${goods.goods_price}<br/>
</c:forEach>--%>
<%--<input type="submit" value="升序"/><input type="submit" value="降序"/><br/><br/>--%>

<form>
    <a href="selectGoodsPrice.action?id=1">价格从低到高</a>
    <a href="selectGoodsPrice.action?id=2">价格从高到低</a><br/><br/>
    <c:forEach items="${status}" var="goods">
        <table id="myTable">
                <thead>
                <tr>
                    <td>商品名：${goods.goods_name}</td>
                    <td>商品价格：${goods.goods_price}</td>
                </tr>
                </thead>
                <tbody>
                </tbody>
        </table>
    </c:forEach>
</form>
</body>
</html>
